home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / 109_01.zip / WP.DOC < prev    next >
Text File  |  1993-06-26  |  4KB  |  92 lines

  1. .in 10        set the normal indent at column number 10
  2. .rm 70        set the right  margin at column number 70
  3. .he WP (word processor) description
  4. .fo '                                page #
  5. .sp 3        space 3 lines
  6. .ce 2        center the next two lines
  7. The WP word processor
  8. ---------------------
  9. .ti +4        set a temporary indent 4 columns to the right of indent
  10. WP is a batch mode word processor. It is invoked as:
  11. .sp 2
  12.     WP <input-file> <output-file>
  13. .sp 2
  14. This means accept text with embedded commands from file name
  15. <input-file> and send the processed text to <output-file>. These files
  16. are normally CP/M disk files however if the output file is specified
  17. to be: LST: or CON: or PUN: then the output is sent to the List device
  18. (printer), the Console device (crt), or the Punch device respectively.
  19. An example invocation is:
  20. .sp 2
  21.     WP WP.DOC LST:
  22. .sp 2
  23. .ti +4
  24. The word processor accepts several commands to justify, center or simply
  25. pass thru text. In addition it allows both a header title at the beginning
  26. of each page and a footer title at the bottom of each page. These both
  27. default to an empty line.
  28. .ti + 4
  29. Each WP command consists of 3 characters in
  30. the leftmost column and (in most cases) an optional parameter.
  31. Parameters are strings in the case of header and footer titles and
  32. numbers in all other cases.
  33. .ti +4
  34. In the header and footer strings, leading spaces
  35. are ignored and all occurrences of # are replaced in the output text
  36. by the current page number. If the first non space or tab character in
  37. a header or footer string is " or ' it will be discarded, this is a means
  38. to allow leading spaces in the string since all spaces after the " or '
  39. are significant.
  40. .bp
  41. .ti +4
  42. The numeric parameters can be in one of two forms,
  43. an absolute number sets the associated to that number or if out of
  44. legal range, to its limit. A signed (+ or -) number sets the parameter
  45. to its current value + or - the value of the number. This allows setting
  46. for example a paragraph indent margin to be inset from the normal indent
  47. without being required to remember where the current indent is set.
  48. .ti +4
  49. The default mode is
  50. "fill" i.e. fit as many words as possible on a line to fill out the
  51. line width, however any input lines of text which start with space or
  52. tab maintain that number of columns of leading space.
  53. In any case these lines with leading whitespace cause a "break" i.e.
  54. they cause the following text to begin on a new line. Several commands
  55. also cause a break (see table below).
  56. .ti +4
  57. In the function categories below
  58. the lines referred to in centering and underlining are input lines, therefore
  59. to cause a single word to be underlined,for instance, simply place it
  60. on a separate input line. Likewise, to avoid the need to count lines,
  61. centering and underlining may be
  62. made continous by setting the number of lines to something huge e.g. 4000
  63. until it is wished to disable them again at which point specifing 0
  64. will cause an immediate disable.
  65. .sp 10
  66. .ce 2
  67. List of defined commands
  68. ------------------------
  69. .sp 4
  70. .nf
  71.     Command    Function                    Default         Break
  72.     -------    --------                    -------         -----
  73.     .bp n      begin page numbered n       n = +1          yes
  74.     .br        cause a break                               yes
  75.     .ce n      center the next n lines     n = 1           yes
  76.     .fi        enable filling                              yes
  77.     .fo s      set footer title to s       empty           no
  78.     .he s      set header title to s       empty           no
  79.     .in n      set indent to n             n = 0           no
  80.     .ls n      set line spacing to n       n = 1           no
  81.     .nf        disable filling                             yes
  82.     .pl n      set page length to n        n = 66          no
  83.     .rm n      set right margin to n       n = 60          no
  84.     .sp n      space n lines               n = 1           yes
  85.     .ti n      set temporary indent to n   n = 0           yes
  86.     .ul n      underline the next n lines  n = 1           yes
  87. .sp 2
  88. .ti -6
  89. note:
  90. underlining works only for printers which can back up the print
  91. head one char position at a time
  92.